// 以下文件格式为描述路由的协议格式
// 你可以调整 routerConfig 里的内容
// 变量名 routerConfig 为 iceworks 检测关键字，请不要修改名称

import UserLogin from '@/pages/UserLogin';
import NotFound from '@/pages/NotFound';
import Forbidden from '@/pages/Forbidden';

import { getRouterData } from './utils/utils';
import { asideMenuConfig } from './menuConfig';

import BasicLayout from './layouts/BasicLayout';

import FormTest from './pages/FormTest';

import TableTest from './pages/TableTest';
import Empty from './pages/Empty';
import UserLayout from './layouts/UserLayout';

const routerConfig = [
  {
    path: '/user/login',
    component: UserLogin,
    layout: UserLayout,
  },
  {
    path: '/exception/403',
    component: Forbidden,
    layout: BasicLayout,
  },
  {
    path: '/exception/404',
    component: NotFound,
    layout: BasicLayout,
  },
  {
    path: '/form',
    layout: BasicLayout,
    component: FormTest,
  },
  {
    path: '/table',
    layout: BasicLayout,
    component: TableTest,
  },
  {
    path: '/empty',
    layout: BasicLayout,
    component: Empty,
  },
];

const routerData = getRouterData(routerConfig, asideMenuConfig);

export { routerData };
